package com.huiketong.cofpasgers.repository;

import com.huiketong.cofpasgers.entity.WestingHouse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WestingHouseRepository extends JpaRepository<WestingHouse,Integer> {
    @Override
    <S extends WestingHouse> S save(S s);

    List<WestingHouse> findWestingHousesByCompanyId(Integer companyId);
}
